//
//  AboutUSViewController.m
//  LiveSoftware
//
//  Created by lanou3g on 15/7/24.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "AboutUSViewController.h"

@interface AboutUSViewController ()

@end

@implementation AboutUSViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self customNavigationBar];
    

    
    self.navigationItem.title = @"关于";
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    //图标
    UIImageView *icon = [[UIImageView alloc]initWithFrame:CGRectMake( 0 ,0, kScreenWidth, kScreenHeight)];
    icon.image = [UIImage imageNamed: @"aboutUs"];
    [self.view addSubview:icon];
    
    
    
    //简介
    
    UILabel * intro= [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(50), kScreenIp6(180), kScreenIp6(275), kScreenIp6(180))];
    
    intro.text = @"       直播+是一款将视频直播、比分直播完美融合的， 集直播、视频、比分、资料库为一体的体育软件，功能更强大、内容更丰富、界面更优美，是专门为球迷量身打造的全方位球赛直播软件!";
    
    intro.numberOfLines = 0;
    intro.font = [UIFont systemFontOfSize:14];
    
    [self.view addSubview:intro];
    
    
    
       
    
    
    //直播+官方交流群
    
    UILabel * qunTitle= [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(50), kScreenIp6(370), 150, kScreenIp6(30))];
    
    qunTitle.text = @"直播+官方交流QQ群:";
    
    qunTitle.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:qunTitle];
    
    
    //qq号
    
    UILabel * QQqun= [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(50) + 150, kScreenIp6(370), kScreenIp6(150), kScreenIp6(30))];
    QQqun.text = @" 480584861";
    QQqun.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:QQqun];
    
    
    //
    UILabel * contontect= [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(50), kScreenIp6(410),  kScreenIp6(100), kScreenIp6(30))];
       contontect.text = @"联系我们:";
    
      contontect.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:contontect];
    

    
    //
    UILabel * mail = [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(130), kScreenIp6(410), kScreenWidth, kScreenIp6(30))];

    mail.text = @"lgll1210@163.com";
    mail.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:mail];

    
    
    
    
     //
    UILabel * mail1= [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(130), kScreenIp6(450), kScreenWidth, kScreenIp6(30))];
    mail1.text = @"hidychen666@163.com";
    mail1.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:mail1];
    
    
    //
    UILabel * mail2 = [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(130), kScreenIp6(490), kScreenWidth, kScreenIp6(30))];

    mail2.text = @"songweidong185@163.com";
    mail2.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:mail2];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark - 自定义导航栏
- (void)customNavigationBar
{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"header_bg_green_2@2x"] forBarMetrics:UIBarMetricsDefault];
    
    UIBarButtonItem *backBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"set_arrow_back"] style:UIBarButtonItemStylePlain target:self action:@selector(popback)];
    [backBarButton setTintColor:[UIColor whiteColor]];
    self.navigationItem.leftBarButtonItem = backBarButton;
    
    UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kScreenIp6(50), kScreenIp6(30))];
    title.text = @"关于";
    title.textColor = [UIColor whiteColor];
    [self.navigationItem setTitleView:title];
}

- (void)popback
{
    [self.navigationController popViewControllerAnimated:YES];
}


#pragma mark - 隐藏和显示导航栏
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.tabBarController.tabBar.hidden = NO;
}


@end
